/**
 * Created by shitao on 15/11/2.
 */
(function () {
    angular.module('my-tabs.controllers')
        .controller('mainCtrl', mainCtrl);
    mainCtrl.$inject = ['$scope', 'appService', 'adService', 'friendService', 'exploreService'];

    function mainCtrl($scope, appService, adService, friendService, exploreService) {
        console.log('mainCtrl');

        // 加载基础数据
        appService.load();
        adService.load();
        friendService.load();
        exploreService.loadCategories();
        exploreService.loadPromotions();
        exploreService.loadStores();

        var vm = this;
    }
})();
